﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;

namespace BUS
{
    public class MucGiamBUS
    {
        public List<shop_mucgiam> LayDanhSachMucGiam()
        {
            MucGiamDAO mgDAO = new MucGiamDAO();
            return mgDAO.LayDanhSachMucGiam();
        }

        public shop_mucgiam LayMucGiamsTheoMa(int MaMucGiam)
        {
            MucGiamDAO mgDAO = new MucGiamDAO();
            return mgDAO.LayMucGiamsTheoMa(MaMucGiam);
        }

        public void XoaMucGiam(int MaMucGiam)
        {
            MucGiamDAO mgDAO = new MucGiamDAO();
            mgDAO.XoaMucGiam(MaMucGiam);
        }

        public void CapNhatMucGiam(shop_mucgiam mgLinq)
        {
            MucGiamDAO mgDAO = new MucGiamDAO();
            mgDAO.CapNhatMucGiam(mgLinq);
        }

        public void ThemMucGiam(shop_mucgiam mgLinq)
        {
            MucGiamDAO mgDAO = new MucGiamDAO();
            mgDAO.ThemMucGiam(mgLinq);
        }
    }
}
